package service;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import mvc.action.ActionInterface;
import mvc.service.ActionObject;

public class LoginService implements ActionInterface{

	@Override
	public String execute(HttpServletRequest request,
			HttpServletResponse response, ActionObject object,
			Map<String, String> map) {
		LoginBean bean=(LoginBean)object;
		String url="fail";
		if("mvc".equals(bean.getUsername())){
			url="success";
		}
		return map.get(url);
	}
	

}
